
package com.zzyl.nursing.job;

import com.zzyl.nursing.service.IContractService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 合同定时任务
 * @author yhnyhn123
 */
@Component
@Slf4j
@RequiredArgsConstructor
public class ContractJob {

    private final IContractService contractService;

    public void updateContractStatusJob() {
        contractService.updateContractStatus();
        log.info("定时更新合同状态成功！");
    }
}
